<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- 
	Bean.....: -
	BeanClass: -
	Servlet..: j_acegi_security_check
	Descricao: Tela de autenticacao para entrar no sistema
 -->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      xmlns:jopcs="http://net.sf.jOpinionPoll/composition"
      xmlns:jopcc="http://net.sf.jOpinionPoll/tag/component/core">
    <ui:composition template="/pages/publico/template/default.xhtml">
        <ui:define name="titulo">
            <h:outputText value="#{msg['publico.login.login.titulo']}" />
        </ui:define>
        <ui:define name="corpo">
            <f:view>
				<!-- Mensagens de aviso e erro -->
				<jopcs:caixaMensagem />

                <!-- titulo -->
                <jopcc:simpleTitle text="#{msg['publico.login.login.titulo']}" styleClass="boxTitulo" lineStyleClass="boxTituloLine" />

				<form method="post" action="#{facesContext.externalContext.requestContextPath}/j_acegi_security_check">
                    <table class="textoNormal" align="center">
                        <!-- usuario -->
                        <tr>
                            <td align="right">
                                <h:outputLabel value="#{msg['publico.login.login.usuario']}"/>
                                <span class="valorRequerido">*</span>
                            </td>
                            <td>
                                <input class="string" type="text" name="j_username"/>
                            </td>
                        </tr>
                        
                        <!-- senha -->
                        <tr>
                            <td align="right">
                                <h:outputLabel value="#{msg['publico.login.login.senha']}"/>
                                <span class="valorRequerido">*</span>
                            </td>
                            <td>
                                <input class="string" type="password" name="j_password"/>
                            </td>
                        </tr>
                    </table>
                    <p/>
					
					<!-- separador -->
                	<rich:separator height="2" width="100%" lineType="dotted" />

                    <!-- comandos -->
                    <table style=" margin-top:15px; margin-bottom:10px">
                        <tr>
                            <td>
                                <input class="button" type="submit" value="#{msg['comum.ok']}"/>
                            </td>
                            <td>
                                <input class="button" onclick="javascript:history.go(-1);" type="button" value="#{msg['comum.cancelar']}"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </f:view>
        </ui:define>
    </ui:composition>
</html>